package github.flandre.examplemod.core.init;

import github.flandre.examplemod.common.item.InfiniteSnowball;
import github.flandre.examplemod.common.tileentity.ExampleGuiTileEntity;
import github.flandre.examplemod.examplemod;
import net.minecraft.entity.EntityType;
import net.minecraft.tileentity.ITickableTileEntity;
import net.minecraft.tileentity.TileEntityType;
import net.minecraftforge.fml.RegistryObject;
import net.minecraftforge.registries.DeferredRegister;
import net.minecraftforge.registries.ForgeRegistries;

public class TileEntityInit{
    public static final DeferredRegister<TileEntityType<?>> TILE_TYPES =
            DeferredRegister.create(ForgeRegistries.TILE_ENTITIES, examplemod.MODID);

    public static final RegistryObject<TileEntityType<ExampleGuiTileEntity>> ENTITY_TYPE_REGISTRY_GUI =
            TILE_TYPES.register("example_gui_tile_entity",
                    ()-> TileEntityType.Builder.create(
                            ExampleGuiTileEntity::new,
                            BlockInit.EXAMPLE_GUI_BLOCK.get())
                            .build(null));

}
